package com.groupbuying.cheetah.settle.settleRefundParamsInit.connector;

import com.groupbuying.cheetah.utils.apiresult.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author WYN
 * @date 2019/5/9
 * @email wyn20140226@aliyun.com
 * @des 服务商中心接口连接器
 */
@Service
@FeignClient(name = "service-ys")
public interface YSFeign {

    /**
     *银盛分账查询接口
     */
   // @PostMapping("/ysservice/splitRequestReceipt")
    @RequestMapping(value = "/ysSplitRequest/splitRequest", method = RequestMethod.POST)
    String splitRequestReceipt(@RequestParam Map<String, Object> mapParams);
    /**
     *银盛提现接口
     */
    @PostMapping("/ysWithdrawal/withdrawal")
    String withdrawal(@RequestParam Map<String, Object> mapParams);
    /**
     *商户额查询接口
     */
    @PostMapping("/ysBalanceQuery/balanceQuery")
    String balanceQuery(@RequestParam Map<String, Object> mapParams);
    /**
     *非一清待打款接口
     */
    @PostMapping("/ysPayment/payment")
    String transferAccounts(@RequestParam Map<String, Object> mapParams);
    /**
     *银盛一清提现查询接口
     */
    @PostMapping("/ysWithdrawal/withdrawalQuery")
    String withdrawalQuery(@RequestParam Map<String, Object> mapParams);
    /**
     *银盛非一清代打款查询接口
     */
    @PostMapping("/ysPayment/paymentQuery")
    String paymentQuery(@RequestParam Map<String, Object> mapParams);

    /**
     * 银盛分账退款
     */
    @PostMapping(value="/ysRefundRequestparam/ysRoutingRefundRequest")
    ApiResult routingRefundRequest(@RequestParam Map<String, Object> params);

    /**
     * 银盛普通退款
     */
    @PostMapping("/ysPayment/paymentQuery")
    ApiResult refundRequest(@RequestParam Map<String, Object> mapParams);

    /**
     *银盛分账回执接口
     */
    @PostMapping("/ysSplit/split")
    String ysSplitReceipt(@RequestParam Map<String, Object> mapParams);
}
